<div class="container" ng-show="modifyPicture">
    <div class="imageBox" >
        <div class="mask"></div>
        <div class="thumbBox" ng-style="isCircle?setRadius(80):''"> </div>
        <div class="spinner" style="display: none">Loading...</div>
    </div>
    <div class="banner clearfix">
        <!--<span id="rotateLeft" >左转(Turn left)</span>-->
        <!--<span id="rotateRight" >右转(Turn right)</span>-->
        <span id="changMin" >缩小</span>
        <span id="changLarge" >放大</span>
        <span id="alertInfo" >清空</span>
        <span id="crop" >保存</span>
        <div class="upload-wapper">
            上传图片
            <input type="file" id="upload-file" value="上传" />
        </div>

    </div>
</div>
<div ng-show="!modifyPicture" class="modifiedPictureBox"    ng-style="btnStyle">
    <img  ng-style="isCircle?setRadius(circleSize):''" ng-src="{{imgUrl}}" alt=""/>
    <a class="modify-btn" ng-click="modifyBtn()">修改头像</a>
</div>


<style>
    .modify-btn{
        margin: 0 auto;
        display: block;
        border: 1px solid #ddd;
        width: 50px;
        padding: 3px 20px;
        text-align: center;
        margin-top: 10px;
    }
    .modifiedPictureBox{
        width: 120px;
        height: 200px;
    }
    .modifiedPictureBox>img{
        width: 120px;
        height: 120px;
        border: 1px solid #ddd;
        /*border-radius: 60px;*/
       	display: inline-block;
    }
    @charset "utf-8";
    *{
        padding: 0;
        margin: 0;
    }
    .container {
        width: 400px;
        position: relative;
        font-family: 微软雅黑;
        font-size: 12px;
    }
    .container p {
        line-height: 12px;
        line-height: 0px;
        height: 0px;
        margin: 10px;
        color: #bbb
    }
    .action {
        width: 400px;
        height: 30px;
        margin: 10px 0;
    }
    .cropped {
        position: absolute;
        right: -230px;
        top: 0;
        width: 200px;
        border: 1px #ddd solid;
        height: 460px;
        padding: 4px;
        box-shadow: 0px 0px 12px #ddd;
        text-align: center;
    }
    .imageBox {
        position: relative;
        height: 180px;
        width: 300px;
        border: 1px solid #aaa;
        background: #fff;
        overflow: hidden;
        background-repeat: no-repeat;
        cursor: move;
        /*box-shadow: 4px 4px 12px #B0B0B0;*/
    }
    .imageBox .thumbBox {
        position: absolute;
        top: 110px;
        left: 55%;
        width: 160px;
        height: 160px;
        /*border-radius: 80px;*/
        margin-top: -100px;
        margin-left: -100px;
        box-sizing: border-box;
        border: 1px solid rgb(102, 102, 102);
        box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
        background: none repeat scroll 0% 0% transparent;
    }
    .imageBox .spinner {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        text-align: center;
        line-height: 400px;
        background: rgba(0,0,0,0.7);
    }
    .Btnsty_peyton{ float: right;
        width: 66px;
        display: inline-block;
        margin-bottom: 10px;
        height: 57px;
        line-height: 57px;
        font-size: 20px;
        color: #FFFFFF;
        margin:0px 2px;
        background-color: #f38e81;
        border-radius: 3px;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0px 0px 5px #B0B0B0;
        border: 0px #fff solid;}
    /*选择文件上传*/
    .new-contentarea {
        width: 165px;
        overflow:hidden;
        margin: 0 auto;
        position:relative;float:left;
    }
    .new-contentarea label {
        width:100%;
        height:100%;
        display:block;
    }
    .new-contentarea input[type=file] {
        width:188px;
        height:60px;
        background:#333;
        margin: 0 auto;
        position:absolute;
        right:50%;
        margin-right:-94px;
        top:0;
        right/*\**/:0px\9;
        margin-right/*\**/:0px\9;
        width/*\**/:10px\9;
        opacity:0;
        filter:alpha(opacity=0);
        z-index:2;
    }
    a.upload-img{
        width:165px;
        display: inline-block;
        margin-bottom: 10px;
        height:57px;
        line-height: 57px;
        font-size: 20px;
        color: #FFFFFF;
        background-color: #f38e81;
        border-radius: 3px;
        text-decoration:none;
        cursor:pointer;
        border: 0px #fff solid;
        box-shadow: 0px 0px 5px #B0B0B0;
    }
    a.upload-img:hover{
        background-color: #ec7e70;
    }

    .tc{text-align:center;}


    /* canvas css style**/
    #visbleCanvas {
        position: absolute;
        top: 0;
        left: 0;
    }
    .thumbBox {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px;
        height: 200px;
        margin-top: -100px;
        margin-left: -100px;
        box-sizing: border-box;
        border: 1px solid #666666;
        box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
        background: none repeat scroll 0% 0% transparent;
    }

    /*****/
    .container{
        height: 150px;
        width: 300px;
        border:1px solid #ddd;
    }
    .banner{
        margin-top: 20px;

    }
    .banner span{
        float: left;
        display: inline-block;
        padding: 5px 20px;
        background-color: #fff;
        color: black;
        border: 1px solid #ddd;
        cursor: pointer;
        margin-bottom: 5px;
        margin-right: 5px;
    }
    .clearfix {
        *zoom: 1;
    }
    .clearfix:before{
        content: " ";
        display: table;
    }
    .clearfix:after{
        content: " ";
        display: table;
        clear: both;
    }
    .cropPoint{
        position: absolute;
        height: 8px;
        width: 8px;
        background-color: rgba(255,255,255,0.7);
        cursor: pointer;
    }
    .upload-wapper{
        position: relative;
        float: left;
        height: 26px;
        line-height: 26px;
        width: 132px;
        background-color: #fff;
        border: 1px solid #ddd;
        color: black;
        text-align: center;
        overflow: hidden;
        cursor: pointer;
    }
    #upload-file{
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        filter: alpha(opacity=0);
        width: 132px;
        height: 26px;
        cursor: pointer;
    }
</style>